﻿using System.Collections.Generic;
using System.ComponentModel;

namespace FileTransfer.Model
{
    /// <summary>
    /// ftp参数
    /// </summary>
    public class FtpSiteParameters : SiteConfig
    {
        public FtpSiteParameters()
        {
            IP = string.Empty;
            Port = 21;
            UserId = "anonymous";
            Password = "anonymous@anonymous.net";
            Site = string.Empty;
        }
        /// <summary>
        /// 格式限制
        /// </summary>
        public string[] FileFormats { get; set; }
        /// <summary>
        /// 采集优先级
        /// </summary>
        [DisplayName("采集优先级")]
        public int Priority { get; set; } = 10;
        /// <summary>
        /// 待下载文件集合
        /// </summary>
        public List<FileStruct> FileSets { get; set; }
    }
}
